<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/MainMaster.master" CodeFile="Default.aspx.cs" Inherits="DentistDirectory_Default" %>

<%@ Register Assembly="Manager" Namespace="PagingControl" TagPrefix="cc1" %>

 <asp:Content ID="topstate" runat="server" ContentPlaceHolderID="MainTable">
  <div class="heading_inner">
        <div class="heading_topic">
            <h2>Dentist Directory Listing</h2>
        </div>
    </div>

    <div class="cl"></div>
    <!---/ Left wrapper -->
    <div style="width: 94%; padding: 3%">
        <div style="background-color: #f4f4f4; width: 94%; padding: 3%">
            <table width="700px" border="0" cellpadding="0" cellspacing="0">                               
                                <tr valign="top">
                                <!-- start Gray Box like Doctor DataBase -->
                                
                                <!-- Gray Box Like Doctor DataBase End-->
                                
                                    <td colspan="2" align="left">
                                    
                                        <!--  State Details -->
                                    
                                            FindaDoc aims to make searching for the best doctors as easy as possible. A website
                                            primarily serving as a directory of rated doctors, FindaDoc can help you gain access
                                            to the top doctors in the United States. Our online doctor database is a great way
                                            to be acquainted with top doctors across the country. As a user, you may search
                                            for the best local doctor or find a doctor at the top of their field on the national
                                            level.    
                                        
                                        <!--  State Details -->
                                                </td>
                                                </tr>
                                                
                            
                            </table>
                        
    <table>
        <tr>
            <td style="height:10px"></td>
        </tr>
    </table>
    <table width="700px" border="0" cellpadding="0" cellspacing="0">                                   
                                <tr valign="top">
                                <!-- start Gray Box like Doctor DataBase -->
                                
                                <!-- Gray Box Like Doctor DataBase End-->
                                
                                    <td colspan="2" align="left">
                                    
                                        <!--  State Details -->
                                    
                                                <asp:GridView runat="Server" DataKeyNames="RowNum" ID="grdstate" AllowPaging="false" AutoGenerateColumns="False" Width="100%"    
                                                        PagerStyle-ForeColor="white" 
                                                        PagerStyle-HorizontalAlign="Center"                                                                                                                
                                                        GridLines="None"  >                                                        

                                                        <Columns>
                                                           <asp:TemplateField HeaderText="State">
                                                           <ItemTemplate> 
                                                                                                                   
                                                            <%--<a class="link-result" href='<%=Session["strHttp"]%>Directory/<%#Eval("State")%>-doctors'title="Show State">
                                                                <%=Session["strHttp"]%><%#Eval("State")%>/</b></a>--%>                                                                                                                                                                                                                                                                
                                                                
                                                                
                                                                <%--<a class="link-result" href="<%# ResolveUrl("~/Directory/State/") %>" > <%=Session["strHttp"]%><%#Eval("State")%>/</a>--%>
                                                                <%--<a class="link-result" href="<%# ResolveUrl("~/Directory/" + Eval("State") + "/") %>" > <%=Session["strHttp"]%><%#Eval("State")%>/</a>--%>
                                                                <a class="link-result" href='<%=Session["strHttp"]%>DentistDirectory/<%#getUrl(Eval("State"))%>-dentists/' > <%=Session["strHttp"]%><%#Eval("State")%>/</a>
                                                                <br />                                                                                                                       
                                                                <br />
                                                           </ItemTemplate>                                                               
                                                               <HeaderStyle HorizontalAlign="Left" />
                                                           </asp:TemplateField>                                                           
                                                        </Columns>
                                                        <HeaderStyle  />
                                                        <PagerStyle  ForeColor="White" HorizontalAlign="Right" />
                                                    </asp:GridView>
                                        
                                        <!--  State Details -->
                                                </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <cc1:paging id="cntPaging" runat="server" resultslocation="Bottom" 
                                                            storedprocedurename="Usp_DentistDirectoryLavelSearch" 
                                                            OrderBy="state" Control_Type="GridView" BindToControl="grdstate"  PagerCount="10" PageSize="25" ShowFirst="False" ShowLast="False">
                                                        </cc1:paging>
                                                        
                                                    </td>
                                            </tr>
                               
                            </table>
                      </div></div>

</asp:Content>
